package tool.bean;

import java.util.*;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import com.hf.bean.*;

public class SysArgs {
	private List<LinkBean> links;		//导航菜单
	
	private Map<String,String> regulars; //正则表达式字符串

	private Map<String,String> sysArgs; //系统参数

	public Map<String, String> getRegulars() {
		return regulars;
	}

	public void setRegulars(Map<String, String> regulars) {
		this.regulars = regulars;
	}

	
	
public Map<String, String> getSysArgs() {
		return sysArgs;
	}

	public void setSysArgs(Map<String, String> sysArgs) {
		this.sysArgs = sysArgs;
	}

public List<LinkBean> getLinks() {
		return links;
	}

	public void setLinks(List<LinkBean> links) {
		this.links = links;
	}

public static void main(String[] args){
	Resource rs = new ClassPathResource("bean-config.xml");
	@SuppressWarnings("deprecation")
	BeanFactory factory = new XmlBeanFactory(rs);
	SysArgs sys= (SysArgs) factory.getBean("sysArgs");

	System.out.println(sys.getRegulars().get("name"));
}


}
